package cn.xiaoqi.consumer.controller;

import cn.xiaoqi.consumer.feign.DemoProviderFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ConsumerController {
    @Autowired
    private DemoProviderFeignClient demoProviderFeignClient;
    @GetMapping("/hello02")
    public String hello02(String name) {
        String response = demoProviderFeignClient.echo(name);
        return "consumer: " + response;
    }
}
